package com.meusdrinks.view;

import java.util.List;

import javax.inject.Inject;

import br.gov.frameworkdemoiselle.annotation.NextView;
import br.gov.frameworkdemoiselle.annotation.PreviousView;
import br.gov.frameworkdemoiselle.stereotype.ViewController;
import br.gov.frameworkdemoiselle.template.AbstractListPageBean;

import com.meusdrinks.business.DrinkBC;
import com.meusdrinks.domain.Drink;

@ViewController
@NextView("./avaliar_2.jsf")
@PreviousView("./avaliar.jsf")
public class AvaliarListMB extends AbstractListPageBean<Drink, Long>{

	private static final long serialVersionUID = 1L;

	@Inject
	private DrinkBC drinkBC;
	
	@Override
	protected List<Drink> handleResultList() {
		return this.drinkBC.findAll();
	}
	
}
